package club.beimeng.config;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class ConifgEntity implements InitializingBean {
    @Value("${club.beimeng.video.RepoPath}")
    private String repoPath;

    @Value("${club.beimeng.video.NginxPath}")
    private String nginxPath;

    public static String Repo_Path;
    public static String Nginx_Path;

    @Override
    public void afterPropertiesSet() throws Exception {
        Repo_Path = repoPath;
        Nginx_Path = nginxPath;
    }
}
/*
 *
 * @author Mr.Bao
 * @date 2021/7/30 21:45
 */